package com.esyoga.yoyoga.service;

import com.esyoga.yoyoga.pojo.TOrder;

import java.util.List;
import java.util.Map;

public interface OrderService {

    /**
     * 根据合约ID查找订单
     * @param cId
     * @return
     */
    List<TOrder> selectOrdersByContractId(Integer cId, Integer oState);

    int insertOrder(TOrder tOrder);

    int updateOrder(TOrder tOrder);

    /**
     * 支付订单,扣除学员的钱，按分成增加场馆和教练的余额
     * @param oId
     * @return
     */
    Map payOrder(Integer oId);
}
